/**
 * Created by davep on 2016-08-22.
 */
define(['angular', 'uiRouter', 'uiBootstrap'], function (angular) {
    'use strict';
    var app = angular.module('configApp', ['ui.router', 'ui.bootstrap']);
    app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/organizations');
        $stateProvider.state('organizations', {
            url: '/organizations',
            templateUrl: '/static/src/config/templates/organizations.html',
            controller: 'organizationsCtrl'
        }).state('users', {
            url: '/users',
            templateUrl: '/static/src/config/templates/users.html',
            controller: 'usersCtrl'
        }).state('resources', {
            url: '/resources',
            templateUrl: '/static/src/config/templates/resources.html',
            controller: 'resourcesCtrl'
        }).state('roles', {
            url: '/roles',
            templateUrl: '/static/src/config/templates/roles.html',
            controller: 'rolesCtrl'
        })
    }]);
    app.controller('organizationsCtrl', ['$scope', '$http', '$filter', function ($scope, $http, $filter) {

    }]);
    app.controller('usersCtrl', ['$scope', '$http', '$filter', function ($scope, $http, $filter) {

    }]);
    app.controller('resourcesCtrl', ['$scope', '$http', '$filter', function ($scope, $http, $filter) {

    }]);
    app.controller('rolesCtrl', ['$scope', '$http', '$filter', function ($scope, $http, $filter) {

    }]);
    return app;
});



